package com.example.design.patterns.冰河.结构型模式.享元模式.concreteFlyWeight;

import com.example.design.patterns.冰河.结构型模式.享元模式.flyWeight.FlyWeight;

/**
 * ConcreteFlyWeight 实现 FlyWeight接口,并为内部状态(如果有的话)增加存储空间.
 * ConcreteFlyWeight 对象必须是可共享的.它所存储的状态必须是内部的;
 * 即:它必须独立于ConcreteFlyWeight对象的场景.
 */
public class FlyWeightImpl implements FlyWeight {
    /**
     *
     * @param arg
     */
    @Override
    public void action(int arg) {
        System.out.println("参数值:" + arg);
    }
}
